<div id="right">
<div class="boxed">
<?php
if (logged_in() === true){
    include 'widgets/loggedin.php';
}else 
{   
include 'widgets/loginform.php';
}?>
</div>
</div>
</div>